<h1>编辑日志</h1>

<% form_for(@post) do |f| %>
  <%= f.error_messages %>
  <%= render :partial => 'form', :object => f %>
  <p>
    <%= f.submit '更新' %>
  </p>
<% end %>

<%= link_to_remote '返回', :update => 'content', :method => :get, :url => posts_path %>
